using AI_BOTS;
public class Fleet
{
	public Fleet(int owner,  int numShips, Planet sourcePlanet, Planet destinationPlanet, int totalTripLength, int turnsRemaining)
	{	
		Owner = owner;
		NumShips = numShips;
		SourcePlanet =  sourcePlanet;
		DestinationPlanet = destinationPlanet;
		TotalTripLength = totalTripLength;
		TurnsRemaining = turnsRemaining;
	}
	
	public Fleet(int owner, int numShips)
	{
		Owner = owner;
		NumShips = numShips;
		SourcePlanet = null;
		DestinationPlanet = null;
		TotalTripLength = -1;
		TurnsRemaining = -1;
	}

	// Accessors and simple modification functions. These should be mostly
	// self-explanatory.
	public int Owner {get;set;}
	public int NumShips {get;set;} 
	public Planet SourcePlanet  {get;set;} 
	public Planet DestinationPlanet  {get;set;} 
	public int TotalTripLength  {get;set;} 
	public int TurnsRemaining  {get;set;} 
	private PlanetWars pw { get; set; }
	public void TimeStep()
	{
		if(TurnsRemaining > 0)
		{
			TurnsRemaining--;
		}
		else
		{
			TurnsRemaining = 0;
		}
	}
	
	private Fleet(Fleet f)
	{
		Owner = f.Owner;
		NumShips = f.NumShips;
		SourcePlanet = f.SourcePlanet;
		DestinationPlanet = f.DestinationPlanet;
		TotalTripLength = f.TotalTripLength;
		TurnsRemaining = f.TurnsRemaining;
	}
}
